package org.prism.thread;

public class Thread01 extends Thread{
    @Override
    public void run() {
        for(int i = 0; i < 100; i++) {
            if (i % 2 == 0){
                System.out.println("i = " + i);
            }
            if (i % 20 == 0){
                Thread.yield();
                System.out.println("i = " + i);
            }
        }
    }
}
